package com.itemDevelop.items.itemTest.grid.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.itemDevelop.items.itemTest.common.entity.IdEntity;


/**
 * 系统菜单实体对象
 */
@Entity
@Table(name = "system_menu")
public class Menu extends IdEntity
{
	private static final long serialVersionUID = 3004626178746023038L;
	private Long parentId;// 父级ID
	private String name;// varchar(32) 菜单名
	private String cls;// varchar(32) 菜单样式class
	private String href;// varchar(128) 页面连接,只有3级菜单有
	private Integer enable;// tinyint(2) 是否启用:1是/0停
	private Integer isOpen; // tinyint(1) 是否打开(二级有效)
	private Integer sno; // tinyint(22) 菜单项排序
	private Long openId; // bigint(20) 默认打开那个页面(一级有效)

	public Long getParentId()
	{
		return parentId;
	}

	public void setParentId(Long parentId)
	{
		this.parentId = parentId;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getCls()
	{
		return cls;
	}

	public void setCls(String cls)
	{
		this.cls = cls;
	}

	public String getHref()
	{
		return href;
	}

	public void setHref(String href)
	{
		this.href = href;
	}

	public Integer getEnable()
	{
		return enable;
	}

	public void setEnable(Integer enable)
	{
		this.enable = enable;
	}

	public Integer getIsOpen()
	{
		return isOpen;
	}

	public void setIsOpen(Integer isOpen)
	{
		this.isOpen = isOpen;
	}

	public Integer getSno()
	{
		return sno;
	}

	public void setSno(Integer sno)
	{
		this.sno = sno;
	}

	public Long getOpenId()
	{
		return openId;
	}

	public void setOpenId(Long openId)
	{
		this.openId = openId;
	}

}
